cmake_minimum_required(VERSION 3.10 FATAL_ERROR)

project(FastLZ
    VERSION 1.0.0
    LANGUAGES C
)

add_library(${PROJECT_NAME} STATIC)

target_sources(${PROJECT_NAME} PRIVATE fastlz.c)

target_include_directories(${PROJECT_NAME}
    PUBLIC .
)

target_link_libraries(${PROJECT_NAME} PRIVATE
    $<$<TARGET_EXISTS:${PROJECT_NAME}_config>:${PROJECT_NAME}_config>
)
